home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
TEMP
/
GNU
/
bison
/
CCode
< prev
next >
Wrap
Text File
|
1995-06-28
|
1KB
|
22 lines
C Code
Previous: <Grammar Rules=>GrammarRul> * Next: <Symbols=>Symbols> * Up: <Grammar Outline=>GrammarOut>
#Wrap on
{fH4}The Additional C Code Section{f}
The {fStrong}additional C code{f} section is copied verbatim to the end of
the parser file, just as the {fStrong}C declarations{f} section is copied to
the beginning. This is the most convenient place to put anything
that you want to have in the parser file but which need not come before
the definition of {fCode}yyparse{f}. For example, the definitions of
{fCode}yylex{f} and {fCode}yyerror{f} often go here. \*Note <Interface=>Interface>: Parser C-Language Interface.
If the last section is empty, you may omit the {fEmphasis}%%{f} that separates it
from the grammar rules.
The Bison parser itself contains many static variables whose names start
with {fEmphasis}yy{f} and many macros whose names start with {fEmphasis}YY{f}. It is a
good idea to avoid using any such names (except those documented in this
manual) in the additional C code section of the grammar file.